<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/warehouse/handworkproduct_form_edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/handworkproduct_form/handworkproduct_form_editEntity.shtml">
		<input type="hidden" class="form-control checkacc"
			value="${handwork.id}" name="handworkFormMap.id" id="id">
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label">仓位</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						name="handworkFormMap.warehouse" value="${handwork.warehouse}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">物料编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						name="handworkFormMap.materialNo" value="${handwork.materialNo}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">产品名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						name="handworkFormMap.productName" value="${handwork.productName}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">单位</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						name="handworkFormMap.unit" value="${handwork.unit}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">模具编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						name="handworkFormMap.mouldNo" value="${handwork.mouldNo}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">长</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" id="length"
						name="handworkFormMap.length" value="${handwork.length}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">宽</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" id="width"
						name="handworkFormMap.width" value="${handwork.width}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">高</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" id="height"
						name="handworkFormMap.height" value="${handwork.height}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">体积</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly id="volume"
						name="handworkFormMap.volume" value="${handwork.volume}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">客户编号</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						name="handworkFormMap.clientNo" value="${handwork.clientNo}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">客户名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						name="handworkFormMap.clientName" value="${handwork.clientName}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">通用件编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						name="handworkFormMap.commonNo" value="${handwork.commonNo}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">重量</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh"
						name="handworkFormMap.weight" value="${handwork.weight}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">每包件数</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh"
						name="handworkFormMap.perPiece" value="${handwork.perPiece}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">配套件数</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh"
						name="handworkFormMap.matingCases" value="${handwork.matingCases}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">标准产能</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh"
						name="handworkFormMap.standardCapacity" value="${handwork.standardCapacity}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						name="handworkFormMap.remark" value="${handwork.remark}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
		</div>
		<footer class="panel-footer text-right bg-light lter">
		<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> </section>
	</form>
	<script type="text/javascript">
		$(function() {
			$("#length").change(function() {
				var length = $("#length").val();
				var width = $("#width").val();
				var height = $("#height").val();
				$("#volume").val(length*width*height);
			});
			$("#width").change(function() {
				var length = $("#length").val();
				var width = $("#width").val();
				var height = $("#height").val();
				$("#volume").val(length*width*height);
			});
			$("#height").change(function() {
				var length = $("#length").val();
				var width = $("#width").val();
				var height = $("#height").val();
				$("#volume").val(length*width*height);
			});
		});
	</script>
</body>
</html>